package com.lynkin.weather.controller;

import com.lynkin.weather.service.WeatherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * controller
 */
@RestController
@RequestMapping("/weather")
public class WeatherController {



    @Autowired
    private WeatherService weatherService;

    /**
     * 获得区县气温
     * @param province 省
     * @param city 市
     * @param county 区县
     * @return
     */
    @PostMapping("/getTemperature")
    public String getTemperature(String province, String city, String county) {
        return weatherService.getTemperature(province, city, county);
    }


}
